package ebusiness.ebusiness.Models.Front.ShoppingTorlley;

import ebusiness.ebusiness.Entity.Good;

public class Toy {
    private int good_id;
    private double good_advice_price;// 建议价
    private String good_img;
    private String good_name;
    private double good_price;
    private String good_status;//商品状态 上/下架
    private int good_stock;//商品库存
    private int good_warning;//库存预警

    private int borrower_id_borrower_id;//借卖方
    private int brander_id_brander_id;//品牌商
    private int brand_id_brand_id;//品牌
    private int classification_id_classify_id;//商品类别
    private int number;
    private int selected;
    public Toy(){}
    public Toy(Good gd,int num,boolean selected){
        good_id=gd.getGood_id();
        good_advice_price= gd.getGood_advice_price();
        good_name=gd.getGood_name();
        good_img=gd.getGood_img();
        good_price=gd.getGood_price();
        good_status=gd.getGood_status();
        good_stock=gd.getGood_stock();
        good_warning=-1;
        brand_id_brand_id=gd.getBrand_id_brand_id();
        borrower_id_borrower_id=gd.getBorrower_id_borrower_id();
        classification_id_classify_id=gd.getClassification_id_classify_id();
        brander_id_brander_id=gd.getBrander_id_brander_id();


        this.selected= selected?1:0;
        this.number=num;

    }

    public int getGood_id() {
        return good_id;
    }

    public void setGood_id(int good_id) {
        this.good_id = good_id;
    }

    public double getGood_advice_price() {
        return good_advice_price;
    }

    public void setGood_advice_price(double good_advice_price) {
        this.good_advice_price = good_advice_price;
    }

    public String getGood_img() {
        return good_img;
    }

    public void setGood_img(String good_img) {
        this.good_img = good_img;
    }

    public String getGood_name() {
        return good_name;
    }

    public void setGood_name(String good_name) {
        this.good_name = good_name;
    }

    public double getGood_price() {
        return good_price;
    }

    public void setGood_price(double good_price) {
        this.good_price = good_price;
    }

    public String getGood_status() {
        return good_status;
    }

    public void setGood_status(String good_status) {
        this.good_status = good_status;
    }

    public int getGood_stock() {
        return good_stock;
    }

    public void setGood_stock(int good_stock) {
        this.good_stock = good_stock;
    }

    public int getGood_warning() {
        return good_warning;
    }

    public void setGood_warning(int good_warning) {
        this.good_warning = good_warning;
    }

    public int getBorrower_id_borrower_id() {
        return borrower_id_borrower_id;
    }

    public void setBorrower_id_borrower_id(int borrower_id_borrower_id) {
        this.borrower_id_borrower_id = borrower_id_borrower_id;
    }

    public int getBrander_id_brander_id() {
        return brander_id_brander_id;
    }

    public void setBrander_id_brander_id(int brander_id_brander_id) {
        this.brander_id_brander_id = brander_id_brander_id;
    }

    public int getBrand_id_brand_id() {
        return brand_id_brand_id;
    }

    public void setBrand_id_brand_id(int brand_id_brand_id) {
        this.brand_id_brand_id = brand_id_brand_id;
    }

    public int getClassification_id_classify_id() {
        return classification_id_classify_id;
    }

    public void setClassification_id_classify_id(int classification_id_classify_id) {
        this.classification_id_classify_id = classification_id_classify_id;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getSelected() {
        return selected;
    }

    public void setSelected(int selected) {
        this.selected = selected;
    }
}
